package com.douqu.game.core.entity.ext.data.boon;

import com.douqu.game.core.entity.db.MailDB;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: Gavin.
 * Description:
 * Date: 2018/4/21 0021 下午 4:57
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public class AuctionRewardPlayer {

    private String objectIndex;

    private List<MailDB> rewardMailList;

    private int totalRewardMoney;

    private int cacaheMoney;

    public void addTotalRewardMoney(int money){
        totalRewardMoney += money;
    }

    public void addRewardMail(MailDB mail){
        if (mail == null)
            return;
        if(rewardMailList == null){
            rewardMailList = new ArrayList<>();
        }
        rewardMailList.add(mail);
    }

    public String getObjectIndex() {
        return objectIndex;
    }

    public void setObjectIndex(String objectIndex) {
        this.objectIndex = objectIndex;
    }

    public List<MailDB> getRewardMailList() {
        return rewardMailList;
    }

    public void setRewardMailList(List<MailDB> rewardMailList) {
        this.rewardMailList = rewardMailList;
    }

    public int getTotalRewardMoney() {
        return totalRewardMoney;
    }

    public void setTotalRewardMoney(int totalRewardMoney) {
        this.totalRewardMoney = totalRewardMoney;
    }

    public int getCacaheMoney() {
        return cacaheMoney;
    }

    public void setCacaheMoney(int cacaheMoney) {
        this.cacaheMoney = cacaheMoney;
    }
}
